home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / gfx / show / gs_src_gs.lha / gs5.03 / gsflip.h < prev    next >
C/C++ Source or Header  |  1997-06-12  |  2KB  |  36 lines

  1. /* Copyright (C) 1996 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* gsflip.h */
  20. /* Interface to routines for "flipping" image data */
  21.  
  22. /*
  23.  * Convert line-based (MultipleDataSource) input to the chunky format
  24.  * used everywhere else.
  25.  *
  26.  * We store the output at buffer.
  27.  * Each row of input must consist of an integral number of pixels.
  28.  * In particular, for 12-bit input, nbytes must be 0 mod 3.
  29.  * offset is the amount to be added to each plane pointer.
  30.  * num_planes must be 3 or 4; bits_per_sample must be 1, 2, 4, 8, or 12.
  31.  * Returns -1 if num_planes or bits_per_sample is invalid, otherwise 0.
  32.  */
  33. extern int image_flip_planes(P6(byte *buffer, const byte **planes,
  34.                 uint offset, uint nbytes,
  35.                 int num_planes, int bits_per_sample));
  36.